#include <stdio.h>
int main()
{
	int a[3][4]={3,2,32,45,2,3,645,2,3,2,35,3},i,j;
	scanf("%d%d",&i,&j);
    int (*p)[4];
    p=a;
	
	printf("%d",*(*(a+i)+j));
	
	
	
	return 0;
 } 
